// 这个包用于定义验证规则
const joi = require('joi')

const name = joi.string().required()
const alias = joi.string().alphanum().required()

exports.add_cate_schema = {
  body:{
     name,
     alias
  }
}

const id = joi.number().integer().min(1).required()
exports.delete_cate_schema = {
  body:{
     id
  }
}

exports.get_cate_schema = {
  body:{
    id
  }
}